
using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;

namespace TestApp
{
	public class Application
	{
		static void Main (string[] args)
		{
			UIApplication.Main (args);
		}
	}

	public partial class AppDelegate : UIApplicationDelegate
	{
		UITabBarController _tabs;

		UINavigationController _tab0;
		UINavigationController _tab1;
		UITableViewController _tab2;
		UIImagePickerController _tab3;

		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			_tabs = new UITabBarController ();
			
			var table0 = new UITableViewController ();
			_tab0 = new UINavigationController (table0);
			_tab0.Title = "TableNav";
			
			_tab1 = new UINavigationController (new MyC ());
			_tab1.Title = "MyNav";
			
			_tab2 = new UITableViewController ();
			_tab2.Title = "Table";
			
			_tab3 = new UIImagePickerController ();
			_tab3.Title = "Image";
			
			_tabs.SetViewControllers (new UIViewController[] {
				_tab0,
				_tab1,
				_tab2,
				_tab3
			}, false);
			
			// If you have defined a view, add it here:
			window.AddSubview (_tabs.View);
			
			window.MakeKeyAndVisible ();
			
			SpyTouch.SpyTouch.Run ();
			
			return true;
		}

		public override void OnActivated (UIApplication application)
		{
		}
	}

	class MyC : UIViewController
	{
	}
	
	
}

